<template>
	<view class="card">
		<view class="header">
			支持会员卡
		</view>
		<view class="vipCard" v-for="(v,i) in carsArry" :key="i">
			<view>
				<view>
					{{v.carsName}}
				</view>
				<view>
					支持场馆:{{v.carsVen}}
				</view>
				<view>
					{{v.carsType}}
				</view>
				<view>
					{{v.carsMoney}}
				</view>
			</view>
			<view>
				<button type="default" @click="vipCars">
					购买会员卡
				</button>
			</view>
		</view>
	</view>
</template>

<script>
	import store from '../../../store/index.js'
	import {reactive,toRefs} from'vue'
	export default{
		setup(){
			let data=reactive({
				useId:'',
				carsArry:[{
					carsName:'健身2次体验',
					carsVen:'全部场馆',
					carsType:'次卡类型',
					carsMoney:'本卡可抵扣：1次'
				}],
				vipCars(){
					// data.useId=store.state.userdata[0].vipId
					uni.navigateTo({
						url:'../../Client/ClientPages'
					})
				}
			})
			return {...toRefs(data)}
		}
	}
</script>

<style lang="scss">
	.card {
		padding: 25rpx;
	}

	.card>.header {
		font-size: 40rpx;
		font-weight: bold;
	}

	.vipCard {
		color: #FFFFFF;
		background: linear-gradient(to right, #6638FF, skyblue);
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 25rpx;
		border-radius: 10rpx;
		margin-top: 20rpx;
		font-weight: bold;
	}

	.vipCard>view:first-child {
		line-height: 55rpx;
	}

	.vipCard>view:first-child>view:first-child {
		font-size: 40rpx;
	}

	.vipCard>view:first-child>view {
		margin-bottom: 15rpx;
		font-size: 28rpx;
	}

	.vipCard>view:last-child>button {
		color: #FFFFFF;
		background: #3478F7;
		font-weight: normal;
	}

	.vipCardGold {
		color: #FFFFFF;
		background: linear-gradient(to right, #CC3535, #B07D7D);
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 25rpx;
		border-radius: 10rpx;
		margin-top: 20rpx;
		font-weight: bold;
	}

	.vipCardGold>view:first-child {
		line-height: 55rpx;
	}

	.vipCardGold>view:first-child>view:first-child {
		font-size: 40rpx;
	}

	.vipCardGold>view:first-child>view {
		margin-bottom: 15rpx;
		font-size: 28rpx;
	}

	.vipCardGold>view:last-child>button {
		color: #FFFFFF;
		background: #CC4747;
		font-weight: normal;
	}
</style>

